﻿<UserControl x:Class="ViCode_LeVi.Controls.VMTabAnalysis_Tab3" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:vmcontrol="clr-namespace:ViCode_LeVi.Controls"
    xmlns:Langs="clr-namespace:ViCode_LeVi.Langs"
             xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit">
    <UserControl.Resources>
        <vmcontrol:VMTabAnalysis_Tab1_Item_Color_Converter x:Key="VMTabAnalysis_Tab1_Item_Color_Converter"/>
    </UserControl.Resources>
    <DockPanel LastChildFill="True">
        <GroupBox  Margin="2">
            <GroupBox.Header>
                <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_Option_Text"/>
            </GroupBox.Header>
            <GroupBox.Content>
                <StackPanel Name="StackPanel_Config">
                    <GroupBox Margin="2">
                        <GroupBox.Header>
                            <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_ColumnDisplay_Text"/>
                        </GroupBox.Header>
                        <GroupBox.Content>
                            <StackPanel>
                                <CheckBox IsChecked="{Binding Display_Y_ID}" Content="ID" Margin="2"/>
                                <CheckBox IsChecked="{Binding Display_Y_Name}" Content="Name" Margin="2"/>
                            </StackPanel>
                        </GroupBox.Content>
                    </GroupBox>
                    <GroupBox  Margin="2">
                        <GroupBox.Header>
                            <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_ColumnInfomation_Text"/>
                        </GroupBox.Header>
                        <GroupBox.Content>
                            <StackPanel Name="StackPanel_TaskType">

                            </StackPanel>
                        </GroupBox.Content>
                    </GroupBox>
                </StackPanel>
            </GroupBox.Content>
        </GroupBox>
        <DockPanel>
            <Grid DockPanel.Dock="Bottom">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Analysis_Interpretation_Text" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="2"/>
                <vmcontrol:VMTextBox_MultiLine Grid.Row="1" MinLines="3" Text="{Binding Interpretation3}" Margin="2" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
            </Grid>
            <GroupBox  Margin="2">
                <GroupBox.Header>
                    <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_DisplayChart_Text"/>
                </GroupBox.Header>
                <GroupBox.Content>
                    <Grid>
                        <chartingToolkit:Chart  Name="barChart" Title=""   HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
                                VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"
		 Margin="2" >
                            <chartingToolkit:Chart.Resources>
                                <Style x:Key="BubbleDataPointStyle" TargetType="chartingToolkit:BubbleDataPoint">
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="chartingToolkit:BubbleDataPoint">
                                                <Grid RenderTransformOrigin=".5,.5">
                                                    <Grid.RenderTransform>
                                                        <ScaleTransform ScaleX=".25" ScaleY=".25" />
                                                    </Grid.RenderTransform>
                                                </Grid>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </chartingToolkit:Chart.Resources>
                            <!--ItemsSource="{Binding}"-->
                            <!--DataPointStyle="{StaticResource BubbleDataPointStyle}"-->
                            <!--SizeValuePath="Size"-->
                            <chartingToolkit:ColumnSeries DependentValuePath="Y" IndependentValuePath="X" 
                                               Title=""
                                               IsSelectionEnabled="False"
                                               >
                                <chartingToolkit:DataPointSeries.ItemsSource>
                                    <Binding BindsDirectlyToSource="True"/>
                                </chartingToolkit:DataPointSeries.ItemsSource>
                            </chartingToolkit:ColumnSeries>


                            <chartingToolkit:Chart.Axes>
                                <!--<chartingToolkit:LinearAxis Orientation="X"
                       ShowGridLines="True"
                       Title="" 
                        Minimum="0" Maximum="100" Interval="10" />-->

                                <chartingToolkit:LinearAxis Orientation="Y"
                       ShowGridLines="True"
                       Title="" 
                        Minimum="0" Maximum="10"  />
                            </chartingToolkit:Chart.Axes>
                        </chartingToolkit:Chart>
                    </Grid>
                </GroupBox.Content>
            </GroupBox>
        </DockPanel>
    </DockPanel>
</UserControl>
